// This file is part of MatrixPilot.
//
//    http://code.google.com/p/gentlenav/
//
// Copyright 2009-2011 MatrixPilot Team
// See the AUTHORS.TXT file for a list of authors of MatrixPilot.
//
// MatrixPilot is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// MatrixPilot is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with MatrixPilot.  If not, see <http://www.gnu.org/licenses/>.


#ifndef _MCU_H_
#define _MCU_H_


#define CONSOLE_UART    3

#define BAUDRATEX       115200UL
#define BRGHX           1
#if (BRGHX == 0)
	#define BRG_DIVX    16
#elif (BRGHX == 1)
	#define BRG_DIVX    4
#else
	#error Must select a valid BRGHX value
#endif


void uart_init(void);
void mcu_init(void);


#endif // _MCU_H_
